package com.carleasoft.mps.adu.business.dict.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.carleasoft.mps.adu.business.dict.bean.entity.SysDict;
import com.carleasoft.mps.adu.business.dict.bean.po.SysDictPo;


import java.util.List;

/**
 * @author yanghao
 * @date 2021-12-17 17:26
 * @project mps
 */
public interface SysDictService extends IService<SysDict> {

    /**
     * 添加字典
     * @param sysDict
     * @return
     */
    Boolean add(SysDict sysDict);

    /**
     * 修改字典
     * @param sysDict
     * @return
     */
    Boolean updateDict(SysDict sysDict);

    /**
     * 根据类型查字典详情
     * @param sysDict
     * @return
     */
    List<SysDict> doFindList(SysDictPo sysDict);

    /**
     * 根据id删除字典
     * @param id
     * @return
     */
    Boolean deleteDict(String id);

    /**
     * 分页查询字典列表
     * @param
     * @param sysDictPo
     * @return
     */
    List<SysDict> pageQuery( SysDictPo sysDictPo);

    List<SysDict> getByDictCodes(List<String> ids);
}
